<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>
MvvmNavigationTarget class
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../resources/stylesheet.css" TITLE="Style">
</HEAD>

<BODY BGCOLOR="white">


<!-- ========= START OF TOP NAVBAR ======= -->

<table border="0" width="100%">
<tr>
<td width="50%">
<p align="left">
<a href="http://mvvmbasics.mobilemotion.eu/" target="_blank" title="MVVMbasics Homepage"><img src="../../resources/logo_mvvmbasics.png" alt="MVVMbasics Logo" border="0"></a>
</p>
</td>
<td width="50%">
<p align="right">
<a href="http://www.mobilemotion.eu/" target="_blank" title="mobilemotion.eu Homepage"><img src="../../resources/logo_mobilemotion.png" alt="mobilemotion.eu Logo" border="0"></a>
</p>
</td>
</tr>
</table>

<HR>

<p><a href="../../index.htm" title="MVVMbasics Class Reference Homepage">Back to Class Reference home page</a></p>

<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">MVVMbasics.Attributes</FONT>
<BR>
Class MvvmNavigationTarget
</H2>

<CODE>
<A HREF="http://msdn.microsoft.com/en-us/library/system.attribute%28v=vs.110%29.aspx" target="_blank" title="System.Attribute">System.Attribute</A>
<br>
&nbsp;&nbsp;<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>MVVMbasics.Attributes.MvvmNavigationTarget</B>
<br>&nbsp;
</CODE>
<HR>
<CODE>
&nbsp;<br>
AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
<br>public class <B>MvvmNavigationTarget</B> : <A HREF="http://msdn.microsoft.com/en-us/library/system.attribute%28v=vs.110%29.aspx" target="_blank" title="System.Attribute">Attribute</A>
</CODE>

<P>
Attribute to be applied to View classes. Allows the binding of a given Viewmodel type to this View class.
</P>

<hr>

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>public&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#MvvmNavigationTarget(Type)">MvvmNavigationTarget</a></B>(<A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A> viewmodel)</CODE>
<BR>
<span class="Indented">Constructor that allows to specify Viewmodel. The path to the XAML file representing this View class will be retrieved from the View's namespace.</span>
</TD>
</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>public&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#MvvmNavigationTarget(Type,path)">MvvmNavigationTarget</a></B>(<A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A> viewmodel, string path)</CODE>
<BR>
<span class="Indented">Constructor that allows to specify Viewmodel and path. This constructor should be used, if the path of the XAML file representing this View class does not correspond to the View's namespace.</span>
</TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== METHOD SUMMARY ======== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE><A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A>&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#GetViewmodel()">GetViewmodel</a></B>()</CODE>
<BR>
<span class="Indented">Returns the type of the Viewmodel bound to this View class.</span>
</TD>
</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>bool&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#HasPath()">HasPath</a></B>()</CODE>
<BR>
<span class="Indented">Checks if a path to the XAML file representing this View class was specified.</span>
</TD>
</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>string&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#GetPath()">GetPath</a></B>()</CODE>
<BR>
<span class="Indented">Returns the path to the XAML file representing this View class, if specified.</span>
</TD>
</TR>
</TABLE>
&nbsp;

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="MvvmNavigationTarget(Type)"><!-- --></A><H3>
MvvmNavigationTarget</H3>
<CODE>public <B>MvvmNavigationTarget</B>(<A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A> viewmodel)</CODE>
<p class="Indented">Constructor that allows to specify Viewmodel. The path to the XAML file representing this View class will be retrieved from the View's namespace.</p>

<div class="Indented">
<B>Parameters:</B>
<p class="Indented">
<CODE>viewmodel</CODE> - Type of the Viewmodel this View class should be bound to (must be a subclass of <a href="../Viewmodels/BaseViewmodel.htm" title="MVVMbasics.Viewmodels.BaseViewmodel">BaseViewmodel</a>).<br>
</p>
</div>

<HR>

<A NAME="MvvmNavigationTarget(Type,path)"><!-- --></A><H3>
MvvmNavigationTarget</H3>
<CODE>public <B>MvvmNavigationTarget</B>(<A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A> viewmodel, string path)</CODE>
<p class="Indented">Constructor that allows to specify Viewmodel and path. This constructor should be used, if the path of the XAML file representing this View class does not correspond to the View's namespace.</p>

<div class="Indented">
<B>Parameters:</B>
<p class="Indented">
<CODE>viewmodel</CODE> - Type of the Viewmodel this View class should be bound to (must be a subclass of <a href="../Viewmodels/BaseViewmodel.htm" title="MVVMbasics.Viewmodels.BaseViewmodel">BaseViewmodel</a>).<br>
<CODE>path</CODE> - Path to the XAML file representing this View class.<br>
</p>
</div>

<!-- ========= METHOD DETAIL ======== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="GetViewmodel()"><!-- --></A><H3>
GetViewmodel</H3>
<CODE>public <A HREF="http://msdn.microsoft.com/en-us/library/system.type%28v=vs.110%29.aspx" target="_blank" title="System.Type">Type</A> <B>GetViewmodel</B>()</CODE>
<p class="Indented">Returns the type of the Viewmodel bound to this View class.</p>

<div class="Indented">
<B>Returns:</B>
<p class="Indented">
Type of the Viewmodel bound to this View class.
</p>
</div>

<HR>

<A NAME="HasPath()"><!-- --></A><H3>
HasPath</H3>
<CODE>public bool <B>HasPath</B>()</CODE>
<p class="Indented">Checks if a path to the XAML file representing this View class was specified.</p>

<div class="Indented">
<B>Returns:</B>
<p class="Indented">
TRUE if a path was specified for this View class, FALSE otherwise
</p>
</div>

<HR>

<A NAME="GetPath()"><!-- --></A><H3>
GetPath</H3>
<CODE>public string <B>GetPath</B>()</CODE>
<p class="Indented">Returns the path to the XAML file representing this View class, if specified.</p>

<div class="Indented">
<B>Returns:</B>
<p class="Indented">
Path to the XAML file representing this View class.
</p>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<HR>

</body>
</HTML>